package modele;

public class UrgentLetter<L extends Letter<?>> extends LetterDecorator<L> {

	public UrgentLetter(Letter<Content> contentLetter) {
		super(contentLetter);
	}

	public int getCost() {
		return letter.getCost() * 2;
	}

	@Override
	public void doAction() {
		letter.doAction();
	}

	@Override
	public String getType() {
		return "urgent letter";
	}
}
